/**
 *
 */
package de.cbf.cam.dsa.model.entities;

import de.cbf.util.CBFNumberUtil;


/**
 * @author Nebelritter
 *
 */
public class FightPosition {

	private Float distance;

	private String dk;

	public FightPosition(Float distance, String dk) {
		super();
		setDistance(distance);
		this.dk = dk;
	}

	public FightPosition() {
		super();
	}

	@Override
	public String toString() {
		return distance+":"+dk;
	}

	/**
	 * returns the distance class in which the combatants are<br> if they are not positioned returns null
	 */
	public Float getDistance() {
		return distance;
	}

	public void setDistance(Float distance) {
		distance = CBFNumberUtil.roundDigits(distance, 2);
		this.distance = distance;
	}

	public String getDk() {
		return dk;
	}

	public void setDk(String dk) {
		this.dk = dk;
	}




}
